import Vue from 'vue'
import VueRouter from 'vue-router'
// const register = () => import('@/components/register.vue')
// const index = () => import('@/App.vue')
import index from "@/components/index"
import register from "@/components/register"
import login from "@/components/login"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: index
  },
  {
    path: '/index',
    component: index
  },
  {
    path: '/register',
    component: register
  },
  {
    path: '/login',
    component: login
  }
]

const router = new VueRouter({
  routes
})

export default router
